package com.example.design.factory.simplefactory;

public class Client {
    public static void main(String[] args) {
        AnimalFactory factory = new AnimalFactory();
        Animal cat = factory.createAnimal("cat");
        cat.sound();

        Animal dog = factory.createAnimal("dog");
        dog.sound();
    }
}
